package com.example.flex.utils.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: 不是菜鸡爱编程
 * @Date: 2023/11/04/20:25
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "PageEntity", description = "分页参数,pageNum为当前页码,pageSize为显示条数,data为对应的实体类数据模型，如user、role等")
public class PageEntity<T> {
    @ApiModelProperty(value = "页码")
    private Integer pageNum=1;
    @ApiModelProperty(value = "显示条数")
    private Integer pageSize=10;
    @ApiModelProperty(value = "实体类数据模型")
    private T data;
}
